home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / p / pofo / sprachen / pbasic / pbas30 / pbasic.adr < prev    next >
Encoding:
Text File  |  1991-08-22  |  7.1 KB  |  396 lines

  1. ABS(exp)
  2. Returns absolute value of exp.
  3.  
  4. ADDRESS of BJ Gleason
  5. The American University
  6. CSIS  (Thin Air Labs)
  7. 4400 Massachusetts Avenue, N.W.
  8. Washington, DC  20016
  9. Compuserve : 73337,2011
  10.  
  11. ALARM
  12. Beep speaker, Wait for keypress.
  13. PORT ONLY
  14.  
  15. ALTR.COM
  16. TSR to invoke P.EXE from editor
  17. <ALT><R> to Execute
  18.  
  19. ASC(x$)
  20. Returns ASCII value of the first
  21. character in x$.
  22.  
  23. ATN(exp)
  24. Returns Arc Tangent of exp.
  25.  
  26. BEEP
  27. Single beep from the speaker.
  28. PORT ONLY
  29.  
  30. BOX       row1, col1, row2, col2, type
  31. Draw a box.  Row1 and Col1 specify the
  32. upper left corner position of the box,
  33. Row2 and Col2 specify the lower right.
  34. Type 0 for single line, 1 for a double
  35. PORT ONLY
  36.  
  37. CHR$(n)
  38. Returns ASCII char of the value n.
  39.  
  40. CLICK
  41. Make the key click sound.
  42. PORT ONLY
  43.  
  44. CLS
  45. Clears the screen.
  46.  
  47. COS(exp)
  48. Returns Cosine of exp.
  49.  
  50. CSRLIN
  51. Returns current cursor line.
  52.  
  53. DATA      list of numbers/strings
  54. MUST have a line number.  
  55. Elements separted by commas
  56. Strings must be enclosed in quotes.
  57. 12 DATA 1,2,3,4,5,6
  58.  
  59. DATE$     
  60. Returns system date.
  61.  
  62. DEF SEG   = exp
  63. Assigns a segment address for memory
  64. accessing via PEEK, POKE and CALL.
  65.  
  66. DIAL      string
  67. Dial the "number" through the speaker. 
  68. Valid tones are: 0 1 2 3 4 5 6 7 8
  69. 9 A B C D * #.
  70. PORT ONLY
  71.  
  72. DIM       var(size,[size]){,var(size)}
  73. Dimension Float or String Arrays
  74.  
  75. DISPLAY   exp
  76. 0=Static, 1=Normal, 2=Tracked
  77. PORT ONLY
  78.  
  79. EDITOR
  80. Name PBASIC.EXE P.EXE
  81. Returns to Editor on Error
  82.  
  83. END
  84.  
  85. ERRORLEVEL
  86. Code generated upon exit.
  87. 0 - Successful exit
  88. 1 - Program aborted
  89. 2 - STOP encountered
  90.  
  91. ERRWIN    row, col, "message"
  92. Display message at row, col.  Beep and
  93. wait for keypress.
  94. PORT ONLY
  95.  
  96. EXP(exp)
  97. Returns e to the power of exp.
  98.  
  99. FIX(exp)
  100. Returns integer portion of exp.
  101.  
  102. FORMFEED
  103. Send a formfeed to the printer.
  104. NOT GWBASIC.
  105.  
  106. FOR       var = exp TO exp [STEP exp]
  107. You can not use an array element for var.
  108.  
  109. FRE(exp)
  110. Returns free amount of memory.
  111. Parameter exp is a dummy expression.
  112.  
  113. GETDISPLAY
  114. Returns the current display
  115. mode.  See DISPLAY for details.
  116. PORT ONLY
  117.  
  118. GOSUB     line number
  119.  
  120. GOTO      line number
  121.  
  122. HEX$(n)
  123. Converts n to a hexidecmial string.
  124.  
  125. IF        exp THEN stmt [ ELSE stmt ]
  126.  
  127. INKEY$
  128. If a key is pressed, char is returned,
  129. otherwise, the empty string ("").
  130.  
  131. INPUT     ["prompt" (,|;)] varname
  132. [,] no ?, [;] ? is printed
  133.  
  134. INP(port)
  135. Returns byte value from port.
  136.  
  137. INSTR(x$,y$)
  138. Returns position of y$ in x$.
  139.  
  140. INT(exp)
  141. Returns integer portion of exp.
  142.  
  143. LEFT$(x$,n)
  144. Returns leftmost n characters of x$.
  145.  
  146. LOCATE    row,col
  147. Move the cursor to row, col.
  148. 1,1 is top left.
  149.  
  150. LOG(exp)
  151. Returns LOG of exp.
  152.  
  153. LPOS(exp)
  154. Returns position of line printer head.
  155. Exp is a dummy expression.
  156.  
  157. LPRINT    list of expressions
  158. Send output to printer.  See PRINT.
  159.  
  160. MID$(x$,n,m)
  161. Returns string from x$, starting at 
  162. position n for m characters.
  163.  
  164. NEXT      [var]
  165. You can not use an array element for var.
  166.  
  167. OCT$(n)
  168. Converts n to an Octal string.
  169.  
  170. OFF
  171. Tunr off until keypress.
  172. PORT ONLY
  173.  
  174. ON        exp  GOSUB list of line numbers
  175.  
  176. ON        exp  GOTO  list of line numbers
  177.  
  178. OUT       port, exp
  179. Send value to the indicated port.
  180.  
  181. PBASIC filename.ext [-T]
  182. Use filename.ext
  183. Default .ext is .BAS
  184. -T turns on Line Trace
  185.  
  186. PBASIC [-T]
  187. Use last file you were editing
  188. -T turns on Line Trace
  189.  
  190. PBVER
  191. Returns PBASIC version Number
  192.  
  193. PEEK(address)
  194. Returns byte from SEG:address. 
  195. SEG is set via DEF SEG.
  196.  
  197. POINT(row,col)
  198. Returns value of pixel at row,col.
  199.  
  200. POKE      addr, exp
  201. Places value at SEG:addr. SEG is set via 
  202. the DEF SEG statement.  If you are doing
  203. Video Memory, use REFRESH.
  204.  
  205. PORT
  206. Returns a 1 if running on a Portfolio,
  207. 0 if not.
  208. PORT ONLY
  209.  
  210. Portfolio BASIC, version 3.0  
  211. (c) 1990 BJ Gleason
  212. by BJ Gleason, American University
  213.  
  214. POS(exp)
  215. Returns the current cursor column.
  216. Exp is a dummy expression.
  217.  
  218. PRINTER   
  219. All PRINT to the printer
  220. Will not wrap the output lines
  221. NOT GWBASIC.
  222.  
  223. PRINT     list of expressions
  224. [,] to tab, [;] or [ ]
  225.  
  226. PRTSC
  227. Send copy to screen to printer
  228. NOT GWBASIC.
  229.  
  230. PSET      (row, col) [, exp]
  231. Set the pixel at row, col to exp.
  232. Port has mximum of 64x240
  233. Exp can be 0 (off) or 1 (on).
  234.  
  235. RANDOMIZE
  236. Initialize the random number generator.
  237.  
  238. RAND(exp)
  239. Return a number between 0 and exp-1. 
  240. NOT GWBASIC.
  241.  
  242. READ      list of variables
  243. Read the values of the variables from
  244. DATA statements.
  245.  
  246. REFRESH
  247. Copy video memory to the LCD controller
  248. PORT ONLY
  249.  
  250. REM
  251. Remark.  The rest of line is ignored.
  252. You can also use the quote (') mark
  253.  
  254. RESTORE   [line number]
  255. Sets data pointer to the specified
  256. line number.  If no line number is
  257. given, point to first data location.
  258.  
  259. RETURN
  260.  
  261. RIGHT$(x$,n)
  262. Returns rightmost n characters from x$.
  263.  
  264. RND
  265. Return an number between 0 and 1.
  266.  
  267. ROMVER
  268. Return the version number of the ROM.
  269. PORT ONLY
  270.  
  271. SCREEN    exp
  272. 4   graphics  320x200
  273. 5   graphics  320x200
  274. 6   graphics  640x200
  275. 7   text      80x25
  276. 8   graphics  160x200
  277. 10   graphics  640x200
  278.  
  279. SGN(exp)
  280. Returns the sign of exp.
  281.  -1   exp < 0
  282.   0   exp = 0
  283.   1   exp > 0
  284.  
  285. SIN(exp)
  286. Returns Sine of exp.
  287.  
  288. SOUND     code, duration
  289. Duration is length of tone in 10 msec.
  290. PORT ONLY
  291. CODE      NOTE      Frequency (Hz)
  292. 48        D#5       622.3
  293. 49        E5        659.3
  294. 50        F5        698.5
  295. 51        F#5       740.0
  296. 52        G5        784.0
  297. 53        G#5       830.6
  298. 54        A5        880.0
  299. 55        A#5       932.3
  300. 56        B5        987.8
  301. 57        C6        1046.5
  302. 58        C#6       1108.7
  303. 41        D6        1174.7
  304. 59        D#6       1244.5
  305. 60        E6        1318.5
  306. 61        F6        1396.9
  307. 14        F#6       1480.0
  308. 62        G6        1568.0
  309. 44        G#6       1661.2
  310. 63        A6        1760.0
  311.  4        A#6       1864.7
  312.  5        B6        1975.5
  313. 37        C7        2093.0
  314. 47        C#7       2217.5
  315.  6        D7        2349.3
  316.  7        D#7       2489.0
  317.  
  318. SPACE$(n)
  319. Returns a string of n spaces.
  320.  
  321. SQR(exp)
  322. Returns Square Root of exp.
  323.  
  324. STATUS    exp
  325. Enable or disable the Status line.
  326. 0 for off, 1 for on.
  327. PORT ONLY
  328.  
  329. STOP
  330. Terminate and Display Line number.
  331. Point editor to location.
  332.  
  333. STRING$(n,m)
  334. Returns a string composed of n chars.
  335. The ASCII value of the character is m. 
  336.  
  337. STR$(n)
  338. Returns string representation of n.
  339.  
  340. SWAP      varname, varname
  341. Exchange contents of the two vars
  342.  
  343. SYSTEM
  344. Terminate the program
  345.  
  346. TAN(exp)
  347. Returns Tangent of exp.
  348.  
  349. TICK      exp
  350. Sets the Clock tick speed.
  351. 0 is Normal, 1 tick every 128 seconds.
  352. 1 is Fast, 1 tick every second.
  353. PORT ONLY
  354.  
  355. TIMER
  356. Returns number of seconds since midnight.
  357.  
  358. TIME$
  359. Returns the system time.
  360.  
  361. TROFF
  362. Disable line tracing.
  363.  
  364. TRON
  365. Enable line tracing.
  366.  
  367. VAL(x$)
  368. Returns the numeric value of x$.
  369.  
  370. VCSRLIN
  371. Returns the current virtual cursor line.
  372. PORT ONLY
  373.  
  374. VLOCATE   row,col
  375. Move the virtual cursor to row, col.
  376. This location is position 1,1 on the 
  377. physical screen.
  378. PORT ONLY
  379.  
  380. VMOVE     dir, dis
  381. Move screen in direction dir, dis
  382. number of characters. Works only 
  383. in Static and Tracked modes.
  384. 1=Up,2=Down,3=Left,4=Right.
  385. PORT ONLY
  386.  
  387. VPOS(exp)
  388. Returns current virtual cursor column.
  389. Exp is a dummy expression.
  390. PORT ONLY
  391.  
  392. WAIT
  393. Wait for a keypress.
  394. NOT GWBASIC
  395.  
  396. ə